﻿<!--
(c) Copyright Fernando Cerqueira.
This source is subject to the Microsoft Public License (Ms-PL).
Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
All other rights reserved.
-->
    
<dw:DialogWindow x:Class="WindowsPhoneCommands.XapDeployDialog"
      xmlns:dw="clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Shell.10.0"
      xmlns:res="clr-namespace:WindowsPhoneCommands"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      WindowStyle="SingleBorderWindow"
      WindowStartupLocation="CenterOwner"
      ResizeMode="NoResize" 
      ShowInTaskbar="False"
      SizeToContent="WidthAndHeight"
      d:DesignHeight="400" d:DesignWidth="600"
	  Title="{Binding Source={x:Static res:Resources.XDeploy}}">
    <Grid Width="411" Height="240" Margin="10">
        <StackPanel Orientation="Vertical" HorizontalAlignment="Stretch">
            <TextBlock Text="{Binding Source={x:Static res:Resources.XSelectXap}}" FontWeight="Bold" />
            <Grid Margin="0,5">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition/>
                    <ColumnDefinition Width="Auto"/>
                </Grid.ColumnDefinitions>
                <TextBox Grid.Column="0" Name="Xapfilename" Width="auto" Height="23" TextChanged="XapfilenameTextChanged" IsReadOnly="True" />
                <dw:DialogButton Grid.Column="1" Content="{Binding Source={x:Static res:Resources.XBrowse}}" Name="btnBrowse" Height="23" HorizontalAlignment="Right"  Margin="10,0,0,0" Click="BtnBrowseClick" />
            </Grid>
            <Expander x:Name="expanappdata" Margin="0,0,0,0" IsEnabled="False">
                <Expander.Header>
                    <TextBlock Text="{Binding Source={x:Static res:Resources.XApplicationData}}" FontWeight="Bold"></TextBlock>
                </Expander.Header>
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition />
                        <RowDefinition />
                        <RowDefinition />
                        <RowDefinition />
                        <RowDefinition />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="70" />
                        <ColumnDefinition />
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="{Binding Source={x:Static res:Resources.XPrdId}}" Margin="0,5,0,0" Grid.Row="0" />
                    <TextBlock Text="{Binding Source={x:Static res:Resources.XTitle}}" Margin="0,5,0,0" Grid.Row="1" />
                    <TextBlock Text="{Binding Source={x:Static res:Resources.XVersion}}" Margin="0,5,0,0" Grid.Row="2" />
                    <TextBlock Text="{Binding Source={x:Static res:Resources.XAuthor}}" Margin="0,5,0,0" Grid.Row="3"/>
                    <TextBlock Text="{Binding Source={x:Static res:Resources.XGener}}" Margin="0,5,0,0"  Grid.Row="4"/>
                    <TextBlock x:Name="ProductIdxap" Margin="0,5,0,0" Grid.Row="0" Grid.Column="1" />
                    <TextBlock x:Name="Titlexap" Margin="0,5,0,0" Grid.Row="1" Grid.Column="1" />
                    <TextBlock x:Name="Versionxap" Margin="0,5,0,0" Grid.Row="2" Grid.Column="1" />
                    <TextBlock x:Name="Authorxap" Margin="0,5,0,0" Grid.Row="3" Grid.Column="1"/>
                    <TextBlock x:Name="Genrexap" Margin="0,5,0,0"  Grid.Row="4" Grid.Column="1"/>
                </Grid>
            </Expander>
            <StackPanel Orientation="Horizontal">
                <Button Content="{Binding Source={x:Static res:Resources.XDeployBnt}}" Name="BntNewDeploy" HorizontalAlignment="Left" Margin="0,5,10,0" IsEnabled="False" Padding="5" Click="BntNewDeployClick" />
                <Button Content="{Binding Source={x:Static res:Resources.XUpdateDeploy}}" Name="BntUpdDeploy" HorizontalAlignment="Left" Margin="0,5,10,0" IsEnabled="False" Padding="5" Click="BntUpdDeployClick" />
                <Button Content="{Binding Source={x:Static res:Resources.XCache}}"  Name="BntCache" HorizontalAlignment="Left" Margin="0,5,0,0" IsEnabled="True" Padding="5" Click="BntCacheClick" />
            </StackPanel>
            <CheckBox Content="{Binding Source={x:Static res:Resources.XLaunchAfter}}" Name="Chklaunch" Margin="0,5,0,0" />
        </StackPanel>
    </Grid>
</dw:DialogWindow>

